<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Public/meta" />
</head>
<body>
    <div class="info-center">
        <div class="page-header">
            <div class="pull-left">
                <h4>一级代理列表</h4> 
            </div>
            <a href="{:U('rule/add_admin')}"  class="btn btn-primary pull-right margin-top">添加管理员</a>
        </div>
        <div class="clearfix"></div>
        <div class="table-margin">
            <table class="table table-hover table-header" id="list-table">
                <thead>
                    <tr>
                        <td>代理账号</td>
                        <td>等级</td>
                        <td>手机号码</td>
                        <td>登陆时间</td>
                        <td>登陆IP</td>
                        <td>状态</td>
                        <td class="w10">操作</td>
                    </tr>
                </thead>
                <tbody>
                    <foreach name="list" item="vo">
                        <tr>
                            <td>{$vo['admin_name']}</td>
                            <td>
                                <if condition="$vo.dengji eq 1">
                                     一级代理
                                 <else/>
                                     没有等级
                                 </if>   
                                </td>
                            <td>
                                {$vo['title']}
                            </td>
                            <td>
                                <if condition="$vo.status eq 1">
                                    允许登陆
                                <else/>
                                    <font color="red">禁止登陆</font>
                                </if>
                            </td>
                            <td>
                                <a href="{:U('Admin/Rule/edit_admin',array('id'=>$vo['admin_id']))}"> 修改权限或密码</a>
                            </td>
                        </tr>
                    </foreach>
                </tbody>
            </table>
        </div>
    </div> 
    <script type="text/javascript" src="__ADMIN_JS__/common.js"></script>
</body>
</html>
